<html>
	<head>
		<title>Welcome to GASCIAN</title>
		<?php 
			$this->load->view('partial/headlinks');
		?>
	</head>
	<body>
		<div id="doc-container" class="width-normal margin-auto">
			<div id="inner-doc-container" class="">
				<?php 
					$this->load->view('partial/header');
				?>
				<?php 
					$this->load->view('partial/navmenu');
				?>
				<div class="hr margin"></div>
				<div class="table-block">
					<div class="table-block-cell myprofile-left-menu border transition">
					<?php 
					$data1['activeClass'] = $activeClass;
					$this->load->view('partial/myprofileleftmenu', $data1);
					?>
					</div><!-- table-block-cell -->
					<div class="search-result table-block-cell">
					<div class="result-container border">
						<ul>
						<?php 
						if(isset($searchList) && count($searchList)>0 && is_array($searchList))
						{
							foreach ($searchList as $ls) {
								?>
								<li>
								<div class="result-list">
									<div class="left-block">
										<!-- <img class="thumb" src="<?php echo base_url(); echo (isset($ls['paperImageThumb']) && $ls['paperImageThumb'] != '')?$ls['paperImageThumb']:"application/images/journals/thumb.png"; ?>" alt="Image"> -->
										<img class="thumb" src="<?php echo base_url(); ?>application/images/journals/thumb.png" alt="Image">
										<span class="author-name">Cay S. Horstmann, Gary Cornell</span><!-- author-name -->
									</div><!-- left-block -->
									<div class="right-block">
										<h2 class="j-title"><?php echo $ls['paperTitle']?></h2>
										<p class="j-abstract"><?php echo $ls['paperAbstract']?>
											<a href="" class="button-action action-button">Read more</a>
										</p>
										<div class="j-sub-details">
											<span>Pub Date : <?php echo $ls['pubDate'];?></span>
											<span>ISBN : <?php echo $ls['isbn']?></span>
											<span>Pages : <?php echo $ls['pages']?></span> 
										</div><!-- j-sub-details -->
									</div><!-- right-block -->
								</div><!-- result-list -->
							</li>
								<?php
							}	
						}
						else
						{
							?><li style="padding:10px;">No results found</li><?php
						}
						?>
						</ul>
					</div><!-- result-container -->
					</div><!-- search-result -->
				</div><!-- table-block -->
			</div><!-- inner-doc-container -->
		</div><!-- doc-container -->
		<?php 
			$this->load->view('partial/footer.php');
		?>	
	<script type="text/javascript">
	$(document).ready(function(){
		$(".accordian ul li.header").click(function(e){
			if($(this).hasClass('header')){
				if($(this).hasClass('active')){
					$(this).removeClass('active');
				}else{
					$(this).addClass('active');
				}
			}
		});

		
	});
	</script>
	</body>
</html>
